package com.ww.springboot.boot.javabase.proxy.demo2;

import com.ww.springboot.boot.javabase.proxy.demo2.impl.MyInterceptorTest;
import com.ww.springboot.boot.javabase.proxy.demo2.impl.MyInterceptorTest2;

/**
 * 描述：
 *
 * @author wanwei
 * @since 2021-07-16 14:43
 */
public class Run {
    public static void main(String[] args) {
        MyInterceptorTest myInterceptorTest = new MyInterceptorTest();

        MyInterceptorTest2 myInterceptorTest2 = new MyInterceptorTest2();

        Test test = new TestClass();

        Object object = myInterceptorTest.plugin(test);

        object = myInterceptorTest2.plugin(object);

        test = (Test) object;

        test.doSomeThing();
    }
}
